<h1>Listing scores</h1>

<table>
  <tr>
    <th>User</th>
    <th>Lab</th>
    <th>Res</th>
  </tr>

<% for score in @scores %>
  <tr>
    <td><%=h score.user_id %></td>
    <td><%=h score.lab_id %></td>
    <td><%=h score.res %></td>
    <td><%= link_to 'Show', score %></td>
    <td><%= link_to 'Edit', edit_score_path(score) %></td>
    <td><%= link_to 'Destroy', score, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New score', new_score_path %>
